﻿<local:BaseDataVisualizer
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
	x:Class="BrainTechLLC.Silverlight.ClientApplication.EditGameLocation"
  xmlns:loc="clr-namespace:BrainTechLLC.Silverlight.ClientApplication"
  xmlns:System="clr-namespace:System;assembly=mscorlib" Width="Auto" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <StackPanel Orientation="Vertical" HorizontalAlignment="Left" VerticalAlignment="Stretch" Height="Auto" x:Name="gameLoc" Width="Auto" Background="#FFFFFFFF">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Room Name:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=Name}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Location:" Style="{StaticResource TextBlockContentStyle}"/>
            <loc:EditLocationInt Name="editLocInt" LocationInt="{Binding Mode=OneWay, Path=XYZ}" Grid.Column="1"
                                 Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Center" RequestEditGameLocation="EditLocationInt_RequestEditGameLocation"
                                 RequestGoLocation="EditLocationInt_RequestGoLocation"/>
            <!--<TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=XYZ}" Style="{StaticResource TextBoxNoScroller}" />-->
            <ContentControl VerticalAlignment="Center" Grid.Column="2" Content="Area:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=AreaName}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Sector Type:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=SectorType}" Style="{StaticResource TextBoxNoScroller}" />
            <ContentControl VerticalAlignment="Center" Grid.Column="2" Content="Room Flags:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=RoomFlags}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Coins:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=Coins}" Style="{StaticResource TextBoxNoScroller}" />
            <ContentControl VerticalAlignment="Center" Grid.Column="2" Content="Vnum:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="3" HorizontalAlignment="Stretch" VerticalAlignment="Center" Text="{Binding Mode=OneWay, Path=Vnum}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Description:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="0,0,0,0" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Center"
               Text="{Binding Mode=TwoWay, Path=RoomDescription}"
               Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Edges:" Style="{StaticResource TextBlockContentStyle}"/>
            <local:DataVisualizer Name="editEdges" Width="Auto" HorizontalAlignment="Stretch" Height="Auto"
                            Grid.Column="1"
                            local:WindowContainer.IsOpen="False" VerticalAlignment="Stretch"
                            Loaded="ShowEdges_Loaded" WindowlessMode="True" RequestEditID="DataVisualizer_RequestEditID_1"
                            IsCollection="True" VisualizerName="ShowLocationEdges"
                            Template="{StaticResource WinContainer}" 
                            DataToVisualize="{Binding Mode=OneWay, Path=ObservableLocationEdges}" 
                            DescriptionTextString="Location Edges" WindowBorder="#FF6D5C00" HeaderBackground="#FF076D02" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>
            <ContentControl VerticalAlignment="Center" Grid.Column="0" Content="Resets:" Style="{StaticResource TextBlockContentStyle}"/>
            <loc:EditAssociatedIDCollection Grid.Column="1" MaxHeight="120" Name="editResetIDs" Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Top" AssociatedIDCollection="{Binding Mode=OneWay, Path=Resets}"
                                        RequestEditID="EditAssociatedIDCollection_RequestEditID" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer Name="editProperties" Width="Auto" HorizontalAlignment="Stretch" Height="Auto"
                                local:WindowContainer.IsOpen="False" VerticalAlignment="Stretch" RequestEditID="DataVisualizer_RequestEditID"
                                Loaded="ShowProps_Loaded" WindowlessMode="True" Owner="{Binding}"
                                IsCollection="True" VisualizerName="ShowPropertiesControl"
                                Template="{StaticResource WinContainer}" DataToVisualize="{Binding Mode=OneWay, Path=ObservableProperties}" DescriptionTextString="Location Properties" WindowBorder="#FF6D5C00" HeaderBackground="#FF076D02" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <local:DataVisualizer Name="showThings" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto"
                                    local:WindowContainer.IsOpen="False" WindowlessMode="True" RequestEditID="DataVisualizer_RequestEditID_2"
                                    IsCollection="True" VisualizerName="GameThingList" Loaded="showGameThings_Loaded"
                                    Template="{StaticResource WinContainer}" DataToVisualize="{Binding Mode=OneWay, Path=ObservableThings}" DescriptionTextString="Things at Location" HeaderBackground="#FF852100" WindowBorder="#FF366B00" />
        </Grid>
    </StackPanel>
</local:BaseDataVisualizer>